﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace _1
{
    class Program
    {
        static void Main(string[] args)
        {
            
            string[] str1 = File.ReadAllLines(".\\..\\..\\in.txt");
            Console.WriteLine(str1.GetLength(0));
            /*
            int kol=0,kk=0;
            for (int i = 0; i < str1.Length; i++)
            {
                if (str1[i] == " ")
                {
                    kol++;
                }
                kk = str1[i].Split(' ');
            }
             
            */
            int[,] array1 = new int[str1.Length, str1.Length];

            string[] k;
            string s = "";
            for (int i = 0; i < str1.Length; i++)
                {
                    k = str1[i].Split(' ');
                    for (int j = 0; j < str1.Length; j++)
                    {
                        array1[i, j] = (Convert.ToInt32(k[j]));
                        s += array1[i, j] + " ";
                    }
                    s += "\n";
                }

            //Console.WriteLine(array1.GetLength(0));
            //Console.WriteLine(array1.GetLength(1));

            Console.WriteLine(s);  
            Console.ReadLine();
            
        }
    }
}
